Preload block headers cache at startup time#9248
Conversation
…d is enabled Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
|
Can we improve the names of the CLI flags? I think it makes it obvious the connection between the two, |
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
|
But , --cache-last-block-headers and preload-block-headers-cache-enabled are related, right? Then I suggest following options: |
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net>
Signed-off-by: ahamlat <ameziane.hamlat@consensys.net>
* Preload cache block headers when --cache-last-block-headers-preload-enabled is enabled Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net> Signed-off-by: Ali Zhagparov <alijakparov.kz@gmail.com>
* Preload cache block headers when --cache-last-block-headers-preload-enabled is enabled Signed-off-by: Ameziane H. <ameziane.hamlat@consensys.net> Signed-off-by: jflo <justin+github@florentine.us>
PR description
This PR introduces a new flag
--preload-block-headers-cache-enabled, that enables preloading the block headers cache during startup time. The number of blocks to preload is defined by--cache-last-block-headers, so this new flag--preload-block-headers-cache-enabledcan work only if--cache-last-block-headersis defined.When these two flags are enabled, there're two log lines that are displayed
Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests